FROM docker.io/library/debian:trixie-slim

RUN rm /etc/apt/sources.list.d/debian.sources
COPY ./test/source.list /etc/apt/sources.list
RUN apt update && apt install -y sudo git

RUN adduser --disabled-password --shell /bin/bash --gecos "" zcdhp
RUN usermod -aG sudo zcdhp && echo "zcdhp ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

USER zcdhp
WORKDIR /home/zcdhp

COPY --chown=zcdhp:zcdhp ./test/setup_repo /home/zcdhp/setup_repo

CMD ["/bin/bash"]
